defmodule SockWorkstation.MixProject do
  use Mix.Project

  def project do
    [
      app: :sock_workstation,
      version: "0.1.0",
      elixir: "~> 1.16-rc",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      compilers: Mix.compilers()
      # nif_path: ["priv"],
      # nif_opts: [
      #   {:c_compiler, "gcc"},
      #   {:c_flags, ["-I/usr/local/include/opus"]},
      #   {:ld_flags, ["-L/usr/local/lib", "-lopus", "-lopusfile"]}
      # ]
    ]
  end

  # Run "mix help compile.app" to learn about applications.
  def application do
    [
      # applications: [:websockex,:httpoison,:exile,:jason,:grpc,:protobuf,:uuid, :qiniu,:poison],
      extra_applications: [:logger,:xmerl],
      mod: {SockWorkstation.Application, []}
    ]
  end

  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      {:websockex, "~> 0.4.2"},
      {:httpoison, "~> 1.0",override: true},
      {:exile, "~> 0.12.0"},
      {:jason, "~> 1.4"},
      {:poison, "~> 2.2"},
      {:grpc, "~> 0.9"},
      {:protobuf, "~> 0.13.0"},
      {:uuid, "~> 1.1"},
      {:membrane_core, "~> 1.1"},
      {:membrane_file_plugin, "~> 0.17.2"},
      {:membrane_opus_plugin, "~> 0.20.5"},
      {:membrane_portaudio_plugin, "~> 0.19.2"},
      {:qiniu, path: "3rdparty/qiniu",override: true},
      {:alf,  path: "3rdparty/ALF"},
      {:couchbeam, "~> 1.5"},


      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
    ]
  end
end
